using System.ComponentModel;
using System.Windows;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace WIAssistant
{
    public class WorkItemColumnItem: INotifyPropertyChanged
    {
        public string Name { get; set; }
        public object Value { get; set; }
        public int FieldID { get; set; }
        public WorkItem WorkItemForColumn { get; set; }

        public Visibility ItemVisibility
        {
            get { return _itemVisibility; }
            set
            {
                _itemVisibility = value;
                OnPropertyChanged("ItemVisibility");
            }
        }
        private Visibility _itemVisibility = Visibility.Visible;

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}